home *** CD-ROM | disk | FTP | other *** search
/ Virtual Sex With Asia / Virtual Sex With Asia.iso / pc / quit.dxr / 00001_--• movie scripts, setup-related.ls next >
Encoding:
Text File  |  1997-09-03  |  1.5 KB  |  67 lines

  1. global gOldColorDepth, gOldSoundLevel
  2.  
  3. on startMovie
  4.   set the trace to 0
  5.   setProp(1, 48, "puppet", 0)
  6.   setProp(1, 48, "visibility", 1)
  7.   unLoad()
  8.   unloadMember()
  9.   initPal()
  10.   patchpal()
  11. end
  12.  
  13. on stopMovie
  14.   if not voidp(gOldColorDepth) then
  15.     set the colorDepth to gOldColorDepth
  16.   end if
  17.   if not voidp(gOldSoundLevel) then
  18.     set the soundLevel to gOldSoundLevel
  19.   end if
  20. end
  21.  
  22. on setFileName whichMember, whichFileName
  23.   if the fileName of member whichMember <> whichFileName then
  24.     set the fileName of member whichMember to whichFileName
  25.   end if
  26. end
  27.  
  28. on setFileNameLib whichMember, whichFileName
  29.   if the fileName of castLib whichMember <> whichFileName then
  30.     set the fileName of castLib whichMember to whichFileName
  31.   end if
  32. end
  33.  
  34. on initPal
  35.   global fixPal
  36.   if the machineType <> 256 then
  37.     if factory("FixPalette") = 0 then
  38.       openXLib("WRONGPAL.XOB")
  39.     end if
  40.     if factory("FixPalette") <> 0 then
  41.       set fixPal to fixPalette(mnew, the stageLeft, the stageTop, the stageRight, the stageBottom)
  42.     end if
  43.   end if
  44. end
  45.  
  46. on patchpal
  47.   global fixPal
  48.   if the machineType <> 256 then
  49.     if factory("FixPalette") <> 0 then
  50.       fixPal(mPatchIt)
  51.     end if
  52.   end if
  53. end
  54.  
  55. on setProp startSprite, endSprite, whichProp, whichValue
  56.   repeat with x = startSprite to endSprite
  57.     do("set the " & whichProp & " of sprite x=whichValue")
  58.   end repeat
  59. end
  60.  
  61. on delayFor howLong
  62.   set howLong to the timer + howLong
  63.   repeat while the timer < howLong
  64.     updateStage()
  65.   end repeat
  66. end
  67.